<style tyle="text/css">
  .modal-lg {
    width: 70%;
  }
  .line-block {
    display: inline-block;
  }
  .header {
    text-align: center; 
    border-left: 1px solid #eaeff0;
    border-top: 1px solid #eaeff0;
    border-bottom: 1px solid #eaeff0;  
    padding: 8px 0px;
    background-color: #ffffff;
    color: #58666e
  }
  .border-right {
    border-right:1px solid #eaeff0;
  }
  .content_style {
	  text-align: center;
		padding: 8px 10px;
    border-left: 1px solid #eaeff0;
    border-bottom: 1px solid #eaeff0;
  }
  .spread_style {
    padding: 8px 0px;
    border-left: 1px solid #eaeff0;
    border-right:1px solid #eaeff0;
    border-bottom: 1px solid #eaeff0;
  }
  .width45 {
		width: 45%;
	}
  .skv4_style {
    float: left;
    line-height: 23px;
  }
</style>
<div class="modal-header">
    <h4 class="modal-title">售卖渠道</h4>
</div>
<div class="modal-body">

    <div class="panel-body">
        <div class="col-sm-12">
          <div class="pull-left header" style="width: 10%; height: 38px"></div>
          <div class="pull-left header width45"><b>渠道名称</b></div>
          <div class="pull-left header width45 border-right"><b>渠道编号</b></div>     
        </div>
        <div class="col-sm-12" ng-if="channel_list.length==0">
            <div class="content_style border-right" style="width: 100%">无销售渠道</div>
        </div>

        <div class="col-sm-12" ng-repeat="info in channel_list">
            <div class="pull-left content_style" style="width: 10%; height: 37px;">
                <i class="fa" style="font-size: 20px;" ng-click="updateChannel(info,info.state)" 
                ng-class="{'fa-check-square text-success': info.state, 'fa-square-o': !info.state}"/>
            </div>
            <div class="pull-left content_style width45">
                {{info.channel_list_name}}
            </div>
            <div class="pull-left content_style width45 border-right">
                {{info.channel_code}}
            </div>
            <div ng-if="info.state==1 && info.bean" class="col-sm-12 spread_style">
                <i class="col-md-12 text-danger" style="font-size: 13px;">渠道配置</i>
                <div class="text-center skv4_style" style="width: 22%">
                    分润类型：{{info.bean.profit_type == '1'? '下单立即分润': '使用后分润'}}
                </div>
                <div class="text-center skv4_style" style="width: 22%">
                    三级分润：{{info.bean.profit_level1||'-'}}%/{{info.bean.profit_level2||'-'}}%/{{info.bean.profit_level3||'-'}}%
                </div>
                <div class="text-center skv4_style" style="width: 22%">
                    最高补贴：{{(info.bean.subsidy_price * 0.01 | currency: '￥')||'-'}}
                </div>
                <div style="width: 34%; float: left; height: 23px;">
                    <button type="button" ng-if="info.bean.product_see_state == '0'" class="btn btn-success btn-xs" ng-click="up(info.bean)">上架</button>
                    <button type="button" ng-if="info.bean.product_see_state == '1'" class="btn btn-warning btn-xs" ng-click="down(info.bean)">下架</button>
                    <button type="button" class="btn btn-info btn-xs" ng-click="poster(info.bean)">设置海报</button>
                    <button type="button" class="btn btn-info btn-xs" ng-click="productSet(info.bean)">编辑</button>
                    <button type="button" ng-if="info.bean.product_see_state == '0'" class="btn btn-primary btn-xs" ng-click="setclass(info.bean)">分类设置</button>
                </div>
            </div>
        </div>
    </div>

</div>
<div class="modal-footer">
    <button class="btn btn-danger" type="button" ng-click="cancel()">关闭</button>
</div>
